// 请求地址
const baseUrl = (function() {
	// return 'http://hiback-dev.xmonecode.com/api';
	// return 'http://pcyang.zhuandanku.com';
	return 'https://zfx.xmonecode.com/api';
	// return 'http://192.168.0.135:7001';
	// return 'https://xiaoyutest.utools.club/';
	// return 'http://toobe.utools.club';
	// return 'https://kete991.utools.club';
	// return 'http://192.168.0.134:7001';
	// return 'http://test_ccc.zhuandanku.com';
	// return 'http://121.37.166.7:99/api';

	let proxy = 'dev';

	if (proxy) {
		uni.setStorageSync('proxy', proxy);
	} else {
		proxy = uni.getStorageSync('proxy') || 'dev';
	}

	switch (process.env.NODE_ENV) {
		case 'development':
			return `/${proxy}`;
		case 'production':
			return ``;
		default:
			return ``;
	}
})();
const token = uni.getStorageSync('token');

// const token ='eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhcHBTb3VyY2UiOiJoZiIsInVzZXJJZCI6IjQ0MyIsInBhc3N3b3JkVmVyc2lvbiI6MSwiaWF0IjoxNTk0OTU1Mzk5LCJleHAiOjE1OTc1NDczOTl9.ee5AXntQiI4Ov6nkzBL-6wTg0Q-ru3ZcCIxXj8l80Po'
export { baseUrl, token };
